#include "CLinkshellItem.h"

CLinkshellItem::CLinkshellItem(unsigned short itemID) {
	m_linkshellID = 0;

	setId(itemID);
	setType(ITEM_LINKSHELL);
	setQuantity(1);
}
	
CLinkshellItem::~CLinkshellItem(void) {
}

void CLinkshellItem::setLinkshellId(unsigned long linkshellID) {
	if(this->getId() != 0x200) {  // If its a New Linkshell item, linkshellID needs to remain 0
		m_linkshellID = linkshellID;
	} else {
		setSellPrice(2000);
	}
}

unsigned long CLinkshellItem::getLinkshellId() {
	return m_linkshellID;
}
